from django.urls import path
from . import views

app_name = 'interactive'

urlpatterns = [
    # path('admin/', admin.site.urls),
    path('notifications/', views.notification_list, name='notification_list'),
    path('notifications/<int:pk>/read/', views.notification_read, name='notification_read'),
    path('notifications/read-all/', views.notification_read_all, name='notification_read_all'),
    path('follow/<int:user_id>/', views.follow_user, name='follow_user'),
    path('unfollow/<int:user_id>/', views.unfollow_user, name='unfollow_user'),
    path('report/<int:story_id>/', views.report_story, name='report_story'),
    path('like/<int:story_id>/', views.like_story, name='like_story'),
    path('favorite/<int:story_id>/', views.favorite_story, name='favorite_story'),
    path('comment/<int:story_id>/', views.comment_story, name='comment'),
    path('reply/<int:comment_id>/', views.reply_comment, name='reply_comment'),
    
    # 新增API端点
    path('story/<int:story_id>/comments/', views.get_comments, name='get_comments'),
    path('story/<int:story_id>/comment/', views.add_comment, name='add_comment'),
    path('comment/<int:comment_id>/like/', views.like_comment, name='like_comment'),
]